package com.yehun.entity;

import lombok.Data;

@Data
public class Message {

    public Message() { }

    public Message(int type) {
        this.type = type;
    }

    public Message(Object data) {
        this.type = 0;
        this.data = data;
    }

    public Message(int type, Object data) {
        this.type = type;
        this.data = data;
    }


    private int type;
    private Object data;

}
